package com.df.tv.launcher.entity;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;

import com.df.tv.launcher.R;
import com.df.tv.launcher.params.ComParams;

public class SettingBean {
    public String name;
    public int resId;
    public String action;

    public SettingBean(String name, int resId, String action) {
        super();
        this.name = name;
        this.resId = resId;
        this.action = action;
    }

    public static List<SettingBean> getSettingItems(Context context) {
        List<SettingBean> list = new ArrayList<SettingBean>();
        SettingBean settingAccount = new SettingBean(context.getResources().getString(R.string.account),
                R.drawable.setting01, ComParams.ACCOUNT_ACTION);
        list.add(settingAccount);
        SettingBean settingNetWork = new SettingBean(context.getResources().getString(R.string.network_setting),
                R.drawable.setting02, ComParams.NETWORK_SETTING_ACTION);
        list.add(settingNetWork);
        SettingBean settingDisplay = new SettingBean(context.getResources().getString(R.string.display_setting),
                R.drawable.setting03, ComParams.DISPLAY_SETTING_ACTION);

        list.add(settingDisplay);
        SettingBean settingSound = new SettingBean(context.getResources().getString(R.string.sound_setting),
                R.drawable.setting04, ComParams.SOUND_SETTING_ACTION);
        list.add(settingSound);
        SettingBean settingTask = new SettingBean(context.getResources().getString(R.string.task_management),
                R.drawable.setting05, ComParams.TASK_MANAGEMENT_ACTION);
        list.add(settingTask);
        SettingBean settingScreenAssistant = new SettingBean(context.getResources().getString(
                R.string.multi_screen_assistant), R.drawable.setting06, ComParams.MULTI_SCREEN_ASSISTANT_ACTION);
        list.add(settingScreenAssistant);
        SettingBean settingSystemUpgrade = new SettingBean(context.getResources().getString(R.string.system_upgrade),
                R.drawable.setting07, ComParams.SYSTEM_UPGRADE_ACTION);
        list.add(settingSystemUpgrade);
        SettingBean settingHelpCenter = new SettingBean(context.getResources().getString(R.string.help_center),
                R.drawable.setting08, ComParams.HELP_CENTER_ACTION);
        list.add(settingHelpCenter);
        SettingBean settingAbout = new SettingBean(context.getResources().getString(R.string.about),
                R.drawable.setting09, ComParams.ABOUT_ACTION);
        list.add(settingAbout);
        return list;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getResId() {
        return resId;
    }

    public void setResId(int resId) {
        this.resId = resId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

}
